import Vue from 'vue'
import Router from 'vue-router'
import Home from "../components/Home";
import Login from "../components/Login";

Vue.use(Router)

export default new Router({
  mode: "history",
  routes: [
    {
      path: '/home',
      name: 'Home',
      component: Home
    },
    {
      name: "Home",
      path: '/',  // 单个组件设置多个访问地址，
      component: Home,
    },
    {
      name: "Login",
      path: '/login',  // 单个组件设置多个访问地址，
      component: Login,
    },
  ]
})
